package com.wanwen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

public class Role {
	@TableId(type=IdType.AUTO)
	private Integer id;//编号
	@TableField(value = "rname")
	private String rname;//角色名称
	@TableLogic(value = "0", delval = "-1")
	private Integer deleted;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getRname() {
		return rname;
	}
	public void setRname(String rname) {
		this.rname = rname;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	public Role(Integer id, String rname, Integer deleted) {
		super();
		this.id = id;
		this.rname = rname;
		this.deleted = deleted;
	}
	public Role() {
		super();
	}
	@Override
	public String toString() {
		return "Role [id=" + id + ", rname=" + rname + ", deleted=" + deleted + "]";
	}
}
